<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>TODO supply a title</title>
    </h:head>
    <body>
        
        <h:form>
            <p:commandButton value="Send Mail" action="#{experiments.sendMail}" />
        </h:form>
        
        <h:form>
            <p:selectOneMenu  value="#{experiments.selectedCompanyDenomination}" >
                               <f:selectItems value="#{companyDenominationView.allCompanyDenominations}" var="compDenom"
                                               itemLabel="#{compDenom.company.name}-#{compDenom.denomination.currency} #{compDenom.denomination.amount.toString()}" itemValue="#{compDenom.id}" />
                         
             </p:selectOneMenu>
            
            <h:commandButton value="Test1" action="#{experiments.testGetCreditByCompanyDenomination}" />
            
            <h:commandButton value="Update" action="#{experiments.testSetToUse}" />
            <h:outputText value="#{experiments.credit.used}" />

            <h:commandButton value="Retrieval" action="#{experiments.testRetrieval}" />
        </h:form>
        
    </body>
</html>
